async function run($input, $output, $modules = modules) {
    /**创建部门
     * 官方api:https://work.weixin.qq.com/api/doc/90000/90135/90205
     * 错误码查询工具：https://open.work.weixin.qq.com/devtool/query?e=
    */
    const wxworkThirdApi = $modules.wxworkThirdApi;
    let data = {
        name: $input.name,
        name_en: $input.name_en,
        parentid: $input.parentid,
        order: $input.order,
        id: $input.id

    }
    //在企业微信创建部门
    let createDepartment = await wxworkThirdApi.createDepartment(data);
    //输出
    $output.id = createDepartment.id;
    
}